Repository navigation
feat: add designs, fonts, video edits and media alt text - #45
Merged
Merged
Conversation
List, create, get, update, delete, versions, restore, duplicate, export, bulk, posts, text-to-slides and from-post over /v1/designs.
List the library and a workspace's fonts, upload one font file as multipart from a path or bytes, and delete an uploaded font.
List the operations, list jobs, queue a job with [{op, params}] operations, and read one job.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
$client->designs(): list, create, get, update, delete, versions, restoreVersion, duplicate, export, bulk, posts, textToSlides, fromPost over/v1/designs. The design document passes through as a plain array (astdClasskeeps an empty object as{}).$client->fonts(): list (library + workspace fonts), upload (multipart, from a path or bytes, same as media upload), delete.$client->videoEdits(): ops, list, create with[{op, params}]operations, get. No poll helper, since the SDK has none for other jobs.$client->media()->generateAltText($mediaId).Not wrapped:
GET /v1/fonts/{id}/file(binary stream) and?format=jsononGET /v1/media/{id}/file.Tested
composer test: 268 tests pass, with unit tests per new method (path, method, body, response mapping, error mapping) throughFakeTransport.composer lint: clean.Merge order
Merge after fopost/fopost#1523 is deployed.